/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package asset;

import com.jme3.animation.Skeleton;
import java.util.Map;

/**
 *
 * @author 
 */
public class Skel {

    // JMonkey skeleton
    Skeleton skeleton;
    
    // Map bone names to bone indices
    Map<String,Integer> nameToIndex;

    public Skel(Skeleton skeleton, Map<String,Integer> nameToIndex) {
        this.skeleton = skeleton;
        this.nameToIndex = nameToIndex;
    }
    
    public int getBoneIndex(String name) {
        return nameToIndex.get(name);
    }    

    public Skeleton getSkeleton() {
        return skeleton;
    }
    
    
    
}
